package day1101_4;

import java.util.Scanner;

public class F3 {
    public static void main(String[] args) {
        Scanner  s=new Scanner(System.in);
        System.out.println("请输入x变量的值：");
        int x=s.nextInt();
        if(x>=0){
                if(x<10){//0<= x<   10
                    System.out.println(  x*x-5);
                }else{ //满足x>=10，(不满足x<10x满足大于等于10)
                    System.out.println(  Math.pow(x,3)  );
                }//                      x的3次方
        }else{//x<0
            System.out.println(x+1);
        }

    }
}
